<div id="project-list">
	<p>
		<b>Title:</b>
		<%= h @project.title %>
	</p>
	<p>
		<b>Project Number:</b>
		<%= @project.projectnum %>
	</p>
	<b>Summary:</b>
	<%= @project.summary %>
	</p>
	<b>Description:</b>
	<%= @project.description %>
	</p>

	<%= link_to 'Edit', edit_project_path(@project) %> |
	<%= link_to 'Back', projects_path %><br />

	<h2>Posts</h2>
	<table>
		<tr class="list-line-head">
			<th>Title</th>
			<th>Poster</th>
			<th>Actions</th>
		</tr>

		<% @project.posts.each do |post| %>
		<tr class="<%= cycle('list-line-odd', 'list-line-even') %>">
			<td><%= h post.title %></td>
			<td><%= h post.poster %></td>
			<td class="list-actions"> <%= link_to 'Show', :controller => 'posts', :action => 'show', :project_id => @project.id, :id => post.id %>
			<br />
			<%= link_to 'Edit', edit_project_post_path(post) %>
			<br />
			</td>
		</tr>
		<% end %>
	</table>

	<%= link_to 'New Post', :controller => 'posts', :action => 'new', :project_id => @project.id %>
	<br />

</div>
